import Vue from 'vue'
import Router from 'vue-router'
// import HelloWorld from '@/components/HelloWorld'
import Login from '@/views/Login.vue'
import Home from '@/views/home/home.vue'
import empty from '@/views/empty.vue'

import index from '@/views/message/index.vue'


Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            redirect: '/home'
        },
        {
            path: '/login',
            name: 'login',
            component: Login
        },
        {
            path: '/home',
            name: 'home',
            component: Home
        },
        {
            path: '/message',
            name: 'empty',
            component: empty,
            redirect: '/message/index',
            children: [{
                path: 'index',
                name: 'index',
                component: index,
            }]
        }
    ]
})